package com.aaa.entity;

import java.io.Serializable;

/**
 * 
 * @TableName department
 */
public class Department implements Serializable {
    /**
     * 
     */
    private Integer deptid;

    /**
     * 
     */
    private String deptname;

    /**
     * 
     */
    private String remark;

    /**
     * 
     */
    private Integer counts;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getDeptid() {
        return deptid;
    }

    /**
     * 
     */
    public void setDeptid(Integer deptid) {
        this.deptid = deptid;
    }

    /**
     * 
     */
    public String getDeptname() {
        return deptname;
    }

    /**
     * 
     */
    public void setDeptname(String deptname) {
        this.deptname = deptname;
    }

    /**
     * 
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 
     */
    public Integer getCounts() {
        return counts;
    }

    /**
     * 
     */
    public void setCounts(Integer counts) {
        this.counts = counts;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Department other = (Department) that;
        return (this.getDeptid() == null ? other.getDeptid() == null : this.getDeptid().equals(other.getDeptid()))
            && (this.getDeptname() == null ? other.getDeptname() == null : this.getDeptname().equals(other.getDeptname()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getCounts() == null ? other.getCounts() == null : this.getCounts().equals(other.getCounts()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDeptid() == null) ? 0 : getDeptid().hashCode());
        result = prime * result + ((getDeptname() == null) ? 0 : getDeptname().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getCounts() == null) ? 0 : getCounts().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", deptid=").append(deptid);
        sb.append(", deptname=").append(deptname);
        sb.append(", remark=").append(remark);
        sb.append(", counts=").append(counts);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}